Platform Explorer / Nuxeo Platform 5.8

Contribution xml-opensocialDashboard.directoryContrib--directories

This contribution is part of XML component xml-opensocialDashboard.directoryContrib inside nuxeo-opensocial-gadgets-core-5.8.jar

Extension Point

Extension point directories of component SQLDirectoryFactory.

Contributed Items

  • <directory name="externalGadgets">
          <schema>externalgadget</schema>
          <dataSource>java:/nxsqldirectory</dataSource>
          <cacheTimeout>3600</cacheTimeout>
          <cacheMaxSize>1000</cacheMaxSize>
          <table>externalGadgets</table>
          <idField>id</idField>
          <autoincrementIdField>false</autoincrementIdField>
          <createTablePolicy>on_missing_columns</createTablePolicy>
        </directory>

XML Source

<extension point="directories" target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory">

   <!-- has to be matched to the java version of the name in GadgetServiceImpl -->
    <directory name="externalGadgets">
      <schema>externalgadget</schema>
      <dataSource>java:/nxsqldirectory</dataSource>
      <cacheTimeout>3600</cacheTimeout>
      <cacheMaxSize>1000</cacheMaxSize>
      <table>externalGadgets</table>
      <idField>id</idField>
      <autoincrementIdField>false</autoincrementIdField>
      <createTablePolicy>on_missing_columns</createTablePolicy>
    </directory>

  </extension>